package org.example.redis.lock2;

import org.example.redis.model.LockInfo;

/**
 * @program: rabbitmq-study
 * @description:
 * @Version V1.0.0
 * @author: dazhi
 * @create: 2021-02-08 13:38
 **/
public interface Lock {
    //获取
    boolean acquire(LockInfo lockInfo);
    //是否
    boolean release(LockInfo lockInfo);
}
